package com.qf.pojo;

import lombok.Data;

import javax.persistence.*;

/**
 * @Author Zhy
 * Date on 2020/10/12  18:23
 * @description
 */
/*
### Recipe【患者处方表】--药品零售也用该表

id,挂号单号(外键),
组号,药品编码(外键),单次用量(3片),用法(口服),频度(1天3次),天数(3天),数量(1瓶),数量单位,单价,总价
id,registId,
groupNo,drugId,dosage,usages,limits,days,counts,quantityUnit,unitPrice,totalPrice
 */
@Entity
@Data
@Table(name = "recipe")
public class Recipe {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    @Column(name = "registid")
    private String registId;
    @Column(name = "groupno")
    private Integer groupNo;
    @Column(name = "drugid")
    private String drugId;
    private String dosage;
    private String usages;
    private String limits;
    private Integer days;
    private Integer counts;
    @Column(name = "quantityunit")
    private String quantityUnit;
    @Column(name = "unitprice")
    private Double unitPrice;
    @Column(name = "totalprice")
    private Double totalPrice;
}
